str_name = "今晚写代码吗?"
temp = str_name.encode("utf-8")

print(temp, type(temp))

name = temp.decode("utf-8")
print(name, type(name))